package com.android.kotlincoroutinemvvmdemo.util;
import com.android.kotlincoroutinemvvmdemo.BuildConfig;

public class UrlConstant {

    private UrlConstant() {}

    private static final String COMMON_DATA_URL;

    private static final String GAME_DATA_URL;

    static {
        if (BuildConfig.DEBUG) {
            COMMON_DATA_URL = "https://test.anyone.com/data/";

            GAME_DATA_URL = "https://test.anyone.com/game/";
        } else {
            COMMON_DATA_URL = "https://anyone.com/data/";

            GAME_DATA_URL = "https://anyone.com/game/";
        }
    }

    public static final String REQUEST_TYPE = COMMON_DATA_URL + "type/type";
    public static final String REQUEST_COLOR = COMMON_DATA_URL + "color/color";

    public static final String REQUEST_GAME_NORMAL = GAME_DATA_URL + "normal/normal";
    public static final String REQUEST_GAME_LIKE = GAME_DATA_URL + "like/like";
}
